Add session.col() method for deferred series expressions#30
Conversation
This method mimics pd.col() from pandas 3.0/Ibis, returning a deferred Series object. This allows for column selection and expression building without a concrete DataFrame context. Added tests in `tests/unit/session/test_col.py`. Co-authored-by: tswast <247555+tswast@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
| """Return a new expression object which is a deferred series.""" | ||
| import leanframe.core.series | ||
|
|
||
| return leanframe.core.series.Series(ibis.deferred[name]) |
There was a problem hiding this comment.
@jules Please introduce a new expression type for this. Don't use Series here.
There was a problem hiding this comment.
I've introduced a new leanframe.core.expression.Expression class to handle deferred series expressions, as requested. The col method now returns an instance of this new class instead of Series.
- Added `leanframe/core/expression.py` defining the `Expression` class. - Updated `Session.col` to return an `Expression` instead of `Series`. - Updated tests to verify `Expression` usage. Co-authored-by: tswast <247555+tswast@users.noreply.github.com>
Implemented
col(name)method inSessionclass inleanframe/core/session.py.It returns a
leanframe.core.series.Seriesobject wrapping anibis.deferredexpression.Added comprehensive tests covering
assignand arithmetic operations with deferred series.PR created automatically by Jules for task 6802571468191900858 started by @tswast